home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
tuner
/
tuner_main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
514b
|
33 lines
#include <stdio.h>
#define GLOBAL
#include "tuner.h"
char *getenv();
main(argc, argv)
int argc;
char **argv;
{
if ( getenv("XENVIRONMENT") == 0 )
#ifdef __STDC__
putenv("XENVIRONMENT=" RESOURCE_PATH);
#else
putenv(strcat("XENVIRONMENT=", RESOURCE_PATH));
#endif
init_ui(&argc, argv);
init_io(&argc, argv);
if ( argc != 1 ) {
fprintf(stderr, "%s: Warning: extraneous args ignored\n", argv[0]);
exit(1);
}
XtRealizeWidget(toplevel);
XtMainLoop();
}